package sch.frog.creational.simplefactory.bean;

public class BeanFactory {

    private BeanFactory() {
    }

    public static IBean createBean(String beanId) {
        switch (beanId) {
            case "a":
                return new BeanA();
            case "b":
                return new BeanB();
            default:
                return null;
        }
    }
}

